package cn.tedu.tmall.basic.schedule;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class DistrictCacheSchedule {

    @Scheduled(cron = "0 0 0 ? * SUN#2")
    public void xxx() throws Exception {
        log.info("执行了计划任务……");
        Thread.sleep(2000);
    }

}
